cmake_minimum_required(VERSION 3.10)

project(ImageHandleDemo)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
find_package(wxWidgets 3.2 REQUIRED COMPONENTS net core base)
include(${wxWidgets_USE_FILE})
set(gcc_like_cxx "$<COMPILE_LANG_AND_ID:CXX,ARMClang,AppleClang,Clang,GNU,LCC>")
add_executable(ImageHandleDemo
    "App.cpp"
    "App.h"
    "MainFrame.cpp"
    "MainFrame.h"
    "ImageDisplay.cpp"
    "ImageDisplay.h"
    "stb_image.h"
)

target_compile_options(ImageHandleDemo INTERFACE
  "$<${gcc_like_cxx}:$<BUILD_INTERFACE:-ggdb;-O0;-Wall;-Wextra;-Wshadow;-Wformat=2;-Wunused>>"
)
target_link_libraries(ImageHandleDemo ${wxWidgets_LIBRARIES})
